/**
 * @FileName ConcreteFlyWeight.java
 * @Package com.designMode.flyweight
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-19 下午3:32:03
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.flyweight;

/**
 * @author 顾博君
 * @ClassName ConcreteFlyWeight
 * @Date 2016-1-19 下午3:32:03
 * @Function 具体享元角色
 */
public class ConcreteFlyWeight extends FlyWeight {

    /**
     * @param _extrinsic
     */
    public ConcreteFlyWeight(String _extrinsic) {
        super(_extrinsic);
    }

    /**
     * 根据外部状态进行逻辑处理
     */
    @Override
    public void operate() {
        System.out.println("ConcreteFlyWeight->" + extrinsic);
        System.out.println("ConcreteFlyWeight->" + getIntrinsic());
    }
}
